package com.yra.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author: yrq
 * @Date: Create in 13:39 2019/12/17
 */
public class IndexConfig {
    private int configId;
    private int configType;
    private int productId;
    private int configRank;
    private String productName;
    private String productImg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public int getConfigId() {
        return configId;
    }

    public void setConfigId(int configId) {
        this.configId = configId;
    }

    public int getConfigType() {
        return configType;
    }

    public void setConfigType(int configType) {
        this.configType = configType;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getConfigRank() {
        return configRank;
    }

    public void setConfigRank(int configRank) {
        this.configRank = configRank;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    @Override
    public String toString() {
        return "IndexConfig{" +
                "configId=" + configId +
                ", configType=" + configType +
                ", productId=" + productId +
                ", configRank=" + configRank +
                ", productName='" + productName + '\'' +
                ", productImg='" + productImg + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
